package com.tom.architect.party3.day23.net;


public abstract class BaseServlet extends HttpServlet {

    protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
        doPost(req,resp);
    }
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) {
       onResponse(req, resp);
    }

    // 抽象一层
    protected abstract void onResponse(HttpServletRequest req, HttpServletResponse resp);

}
